﻿using UnityEngine;

namespace winS.UnityEditor.ProcessEditor
{
    /// <summary>
    /// 虚连接线(拖拽时显示)
    /// </summary>
    public class GhostConnectionline : Connectionline
    {
        public GhostConnectionline(StepGraphView stepGraphView)
        {
            this.stepGraphView = stepGraphView;
        }

        public void Start(Vector2 startPoint)
        {
            style.left = startPoint.x;
            style.top = startPoint.y;
            this.startPoint = endPoint = startPoint;
            Update();
        }
        public void Update(Vector2 endPoint)
        {
            this.endPoint = endPoint;
            Update();
        }
        public void UpdateByOffset(Vector2 offset)
        {
            endPoint += offset;
            Update();
        }
        public override bool ContainsPoint(Vector2 localPoint)
        {
            return false;
        }
    }
}
